package com.interview.ujiuye7;

public class Sub extends Base {
    private String baseName = "sub";
    private static String testName = "TestSub";
    {
        this.baseName = "第三次赋值";
    }
    public void callName() {
        System.out.println("2222");
        System.out.println("----"+baseName+"------");
        System.out.println("33333");
    }
    public Sub(){
        super();
        this.baseName= "第四次赋值";
        System.out.println(baseName);
    }
    public static void main(String[] args) {
        Base base = new Sub();
    }
}